import { AnimationClip } from "cc";
import { SubStateMachine } from "./SubStateMachine";
import { PARAMS_NAME_ENUM, DIRECTION_ORDER_ENUM } from "../Enums";


const BASE_URL = "texture/player/turnleft"

export default class DirectionSubStateMachine extends SubStateMachine {

    run() {
        const param = this.fsm.getParams(PARAMS_NAME_ENUM.DIRECTION);
        const value = param?.value ?? 0;
        this.currentState = this.stateMachines.get(DIRECTION_ORDER_ENUM[value as number]);
    }
}